Skip to content

chore: fix the CodeQL badge, adopt Contributor Covenant 3.0 - #786

Merged
CybotTM merged 2 commits into
mainfrom
chore/coc-3.0-and-codeql-badge
Aug 3, 2026
Merged

chore: fix the CodeQL badge, adopt Contributor Covenant 3.0#786
CybotTM merged 2 commits into
mainfrom
chore/coc-3.0-and-codeql-badge

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 3, 2026

Copy link
Copy Markdown
Member

Two independent changes, one commit each.

The CodeQL badge showed nothing

It pointed at actions/workflows/github-code-scanning/codeql/badge.svg, which is where GitHub's default setup publishes. This repository runs CodeQL from its own .github/workflows/codeql.yml, so that path had no run to report.

Fetched both URLs to confirm rather than assume:

URL Badge title
github-code-scanning/codeql/badge.svg CodeQL - no status
codeql.yml/badge.svg CodeQL - passing

Since one badge was broken, all fifteen were checked the same way. The rest resolve to real values — CI passing, Scorecard 8.8, codecov 89%, release v0.29.0, Best Practices silver. The Go Reference badge has no <text> node because pkg.go.dev draws its label as vector paths; the module page answers 200.

Contributor Covenant 3.0

The 3.0 text is taken from EthicalSource/contributor_covenant rather than retyped. The TOML frontmatter is stripped and both upstream placeholders are filled:

  • the reporting placeholder becomes the existing address, security@netresearch.de, carried over from the 2.1 text along with the promise of a prompt, fair review and reporter confidentiality
  • the enforcement placeholder is a note asking the adopter to describe their own process; this project has none separate from the Covenant, so the note is removed and the Covenant's enforcement ladder stands as what applies

3.0 restructures rather than edits. "Encouraged Behaviors" and "Restricted Behaviors" replace the old examples list, and "Addressing and Repairing Harm" replaces the four-tier enforcement guidelines — hence the large diff for a version bump. No placeholder text remains (grep -c "NOTE:" → 0), and no other file referenced the old version.

lefthook run pre-push exit 0.

CybotTM added 2 commits August 3, 2026 12:09
The badge used the github-code-scanning/codeql path, which is where
GitHub's default setup publishes. This repository runs CodeQL from its
own .github/workflows/codeql.yml, so that URL had no run to report and
the badge rendered "CodeQL - no status".

Verified against both URLs: the old one returns a badge titled
"CodeQL - no status", the new one "CodeQL - passing".

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Replaces the 2.1 text with the canonical 3.0 wording, taken from
EthicalSource/contributor_covenant rather than retyped. The TOML
frontmatter is stripped and both upstream placeholders are filled: the
reporting address stays security@netresearch.de, and the note asking the
adopter to describe their own enforcement process is removed in favour
of the Covenant's enforcement ladder, which is what this project applies.

3.0 restructures the document rather than editing it: "Encouraged
Behaviors" and "Restricted Behaviors" replace the examples list, and
"Addressing and Repairing Harm" replaces the four-tier enforcement
guidelines. The badge is bumped to match.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Copilot AI review requested due to automatic review settings August 3, 2026 10:10
@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 3, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for maintainer PR

All automated quality gates passed. See SECURITY_CONTROLS.md for compensating controls.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The changes are straightforward documentation/badge updates with only minor wording/formatting nits noted.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Updates repository-facing documentation/metadata by fixing the CodeQL badge target in the README and upgrading the project’s Code of Conduct to Contributor Covenant 3.0.

Changes:

  • Point the README CodeQL badge at the repo’s actual codeql.yml workflow so it reports status correctly.
  • Update the Contributor Covenant badge version from 2.1 to 3.0.
  • Replace CODE_OF_CONDUCT.md content with Contributor Covenant 3.0 text (with project-specific reporting contact retained).
File summaries
File Description
README.md Fixes the CodeQL badge URL to point at actions/workflows/codeql.yml, and bumps the Contributor Covenant badge to 3.0.
CODE_OF_CONDUCT.md Replaces the Code of Conduct with Contributor Covenant 3.0 content and keeps the project’s reporting address.
Review details

Suppressed comments (2)

CODE_OF_CONDUCT.md:41

  • In "Other Restrictions", item 3 has the period outside the bolded heading, unlike the other items in the same list. Keeping the punctuation inside the bold text makes the formatting consistent.
3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.

CODE_OF_CONDUCT.md:67

  • Grammar: "A pattern of repeated violation" should be plural ("violations").
   1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
  • Files reviewed: 2/2 changed files
  • Comments generated: 4
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread CODE_OF_CONDUCT.md
Comment thread CODE_OF_CONDUCT.md
Comment thread CODE_OF_CONDUCT.md
Comment thread CODE_OF_CONDUCT.md
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.32%. Comparing base (3a9fb2b) to head (a390cda).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #786      +/-   ##
==========================================
- Coverage   89.33%   89.32%   -0.02%     
==========================================
  Files          88       88              
  Lines       12203    12203              
==========================================
- Hits        10902    10900       -2     
- Misses       1001     1003       +2     
  Partials      300      300              
Flag Coverage Δ
integration 89.30% <ø> (-0.04%) ⬇️
unittests 88.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@CybotTM
CybotTM added this pull request to the merge queue Aug 3, 2026
Merged via the queue into main with commit 7644718 Aug 3, 2026
37 checks passed
@CybotTM
CybotTM deleted the chore/coc-3.0-and-codeql-badge branch August 3, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants